﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [{ name: '登录', path: '/user/login', component: './user/login' }],
  },
  { path: '/welcome', name: '欢迎', icon: 'smile', component: './Welcome' },
  {
    path: '/admin',
    name: '管理页',
    icon: 'crown',
    access: 'canAdmin',
    routes: [
      { path: '/admin', redirect: '/admin/sub-page' },
      { path: '/admin/sub-page', name: '二级管理页', component: './Admin' },
    ],
  },
  { name: '查询表格', icon: 'table', path: '/list', component: './table-list' },
  {
    path: '/',
    component: './layout/CustomLayout',
    layout: false,
    routes: [
      { path: '/', component: './index',layout: false },
      { path: '/app', component: './app',layout: false },
      { path: '/disclaimer', component: './disclaimer',layout: false },
      { path: '/news/ai', component: './news/ai',layout: false },
      { path: '/news/article', component: './news/article',layout: false },
      { path: '/news/product/:id', component: './news/product',layout: false },
      { path: '/about', component: './about',layout: false },
    ],
  },
  { component: '404', layout: false, path: './*' },
];
